﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

namespace InhollandAirPortal {
  public partial class LogoutPage : System.Web.UI.Page {
     protected void Page_Load(object sender, EventArgs e) {
      Response.Cache.SetNoStore();
      Response.Expires = -1;
      if (User.Identity.IsAuthenticated) { // Check of gebruiker is ingelogd
				// Uitloggen
        FormsAuthentication.SignOut();
        Session.Clear();
        Session.Abandon();        
      }
			// Terugsturen naar beginpagina
      Response.Redirect("~/");
    }
  }
}